package com.lill.product.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lill.common.component.util.IdUtil;
import com.lill.product.dao.IStorageInfoDao;
import com.lill.product.model.StorageInfoModel;
import com.lill.product.service.IStorageInfoService;

/**
 * 仓库信息Service实现类
 *
 * @author lill
 * @date 2021-08-30 09:53:27
 */
@Service("com.lill.product.service.impl.StorageInfoServiceImpl")
public class StorageInfoServiceImpl implements IStorageInfoService {
	
    @Autowired
    private IStorageInfoDao storageInfoDao;

    public StorageInfoModel queryObject(String id) {
        return storageInfoDao.queryObject(id);
    }

    public List<StorageInfoModel> queryList(Map<String, Object> map) {
        return storageInfoDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return storageInfoDao.queryTotal(map);
    }

    public int save(StorageInfoModel storageInfo) {
        storageInfo.setId(IdUtil.createIdbyUUID());
        return storageInfoDao.save(storageInfo);
    }

    public int update(StorageInfoModel storageInfo) {
        return storageInfoDao.update(storageInfo);
    }

	public int deleteLogicByMap(Map<String, Object> map) {
		return storageInfoDao.deleteLogicByMap(map);
	}
}
